package top.mydb.hejianwei.common;

import java.nio.file.FileAlreadyExistsException;

/**
 * 定义了项目所有模块的异常
 * 通过静态日常，避免了new一个新的，节约资源
 * 
 */

public class Error {
    //-- common error--
    public static final Exception FileExistsException = new FileAlreadyExistsException("文件已存在");
    public static final Exception FileNotExistsException = new RuntimeException("文件不存在!");
    public static final Exception FileNotReadableException = new RuntimeException("文件不可读");
    //-- tm error--
    public static final Exception BadXIDFileException =new RuntimeException("错误的XID文件");
    public static final Exception CacheFullException = new RuntimeException("缓存已满！");
    public static final Exception FileCannotRWException = new RuntimeException("文件不可读写！");
    public static final Exception BadLogFileException = new RuntimeException("日志错误");
}
